package com.example.redissession.dlm;

import java.util.concurrent.TimeUnit;

/**
 * @author: cph
 * @date: 2022/3/18 17:46
 */
public interface DLM {

    boolean lock(String key, String value, Long timeout, TimeUnit unit);

    void unLock(String key, String value);

}
